﻿using System;
using System.Collections.Generic;

namespace Pixels
{
    class DefeatState : Sargon.State {

        public DefeatState() {
            register_method(Sargon.Trigger.pre_frame, input);

        }

        void input() {
            if (Sargon.Input.state.pressed.Count > 0) exitApplication();
        }

        void exitApplication() {
            Sargon.Game.terminate();
        }
        


    }
}
